package cn.edu.nuc.ssm.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.edu.nuc.ssm.entity.Goods;


public interface GoodsMapper {
    int deleteByPrimaryKey(Integer gid);

    int insert(Goods record);

    int insertSelective(Goods record);

    Goods selectByPrimaryKey(Integer gid);
    
    List<Goods> selectByPrimaryName(String gname);

    int updateByPrimaryKeySelective(Goods record);

    int updateByPrimaryKey(Goods record);
    
    int count(@Param("gname") String gname);
    
    List<Goods> findByLikeName( @Param("gname") String gname, @Param("start") int start, @Param("offset")int offset);

	
}